
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 70px; /* 为底部导航留出空间 */
}

/* 顶部导航 - 使用更浅的渐变色 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #7d9ef7 0%, #5db0ff 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header .back-btn, .header .exit-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header .back-btn:hover, .header .exit-btn:hover {
    background: rgba(255,255,255,0.3);
}

.header .title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 内容区域 */
.content {
    margin-top: 80px;
    padding: 0 20px 20px;
}

/* 个人中心样式 */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #7d9ef7 0%, #5db0ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.avatar-container:hover::after {
    content: "点击更换头像";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    padding: 5px;
    text-align: center;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 48px;
    color: white;
}

.user-name {
    font-size: 22px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
}

.user-title {
    font-size: 16px;
    color: #868e96;
}

/* 纵向菜单按钮区域 */
.menu-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-button {
    background-color: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.menu-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.password-icon {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.birthday-icon {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.lottery-icon {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #343a40;
    flex: 1;
    text-align: left;
}

.menu-arrow {
    color: #868e96;
    font-size: 16px;
}

/* 文件上传输入框 - 隐藏 */
#avatar-upload {
    display: none;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e9ecef;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #868e96;
    font-size: 12px;
    flex: 1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-item.active {
    color: #339af0;
}

.footer-item:hover {
    color: #339af0;
}

.footer-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 360px) {
    .content {
        padding: 0 15px 15px;
    }

    .menu-button {
        padding: 15px;
    }

    .menu-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}